<template>
  <div class="no-record__wrap" :style="{ height: height }" :class="hasBorder ? 'is-border' : ''">
    <div class="no-record">
      <div class="no-record__img"><img src="@/assets/images/pic_no_data.png" alt="" /></div>
      <p class="no-record__text">{{ text }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'no-record',
  components: {},
  props: {
    hasBorder: {
      type: Boolean,
      default: false
    },
    height: {
      type: String,
      default: '200px'
    },
    text: {
      type: String,
      default: '暂无数据'
    }
  },
  data() {
    return {};
  }
};
</script>

<style lang="scss" scoped>
.no-record__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  .no-record__text {
    text-align: center;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.85);
  }
}
</style>
